PreviousNextTracker indexSee it online !

(23/34) 30 - Bug in jedit.bat file.

jedit.bat contains one line: C:\Program
Files\Java\jdk1.5.0_04\bin\javaw.exe -jar "C:\Program
Files\jEdit\jedit.jar" -reuseview %1 %2 %3 %4 %5 %6 %
7 %8 %9

Unfortunately, this won't work because of the space
between "C:\Program" and "Files" in the javaw.exe
command path.

Putting double quotes around the command and its path
fixes the problem.

stephen.mccrea@virgin.net

Submitted *anonymous - 2005-07-05 23:52:14 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2005-07-06 10:52:27
blackweli

Logged In: YES
user_id=971109

I do not have a "jedit.bat" file in jedit folder, but it
seems to me that %1 %2 %3 %4 %5 %6 %
7 %8 %9 may require double quotes, too.

2007-04-18 21:21:16
rschwenn

Logged In: YES
user_id=1486645
Originator: NO

The path of javaw.exe is enclosed in double quotes now (4.3pre9). So the original reported bug is fixed.

Regarding blackweli's hints:
jEdit.bat is now placed in the jEdit home directory rather than in %windir%.

The batch parameters '%1 %2 %3 %4 %5 %6 %7 %8 %9' are now replaced by '%\*'. It seems to work for pathes with spaces under WinXP. But it cannot work under Win9x (and ME ?) - these systems don't know the variable '%\*'.

Enclosing %1 ... %9 in double quotes may cause problems too, when there are not exactly nine parameters (whitch is the normal case). Under WinXP the batch seems to work when '%\*' is replaced by the old placeholders '%1 %2 %3 %4 %5 %6 %7 %8 %9'. Win9x ?

:-|